﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NDF
{
    /// <summary>
    /// 用于给元数据（类型、属性、字段、方法、事件、委托等）附加属性标识
    /// </summary>
    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
    public class MemberInfoDescriptionAttribute : Attribute
    {
        public MemberInfoDescriptionAttribute() { }

        public MemberInfoDescriptionAttribute(string text) : this() 
        {
            this.Text = text;
        }

        public MemberInfoDescriptionAttribute(object value) : this() 
        {
            this.Value = value;
        }

        public MemberInfoDescriptionAttribute(string text, object value) : this(text)
        {
            this.Value = value;
        }

        public string Text { get; set; }

        public object Value { get; set; }

        public string Description { get; set; }

        public string Remark { get; set; }

        public string Summary { get; set; }

    }
}
